<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/medic//save}">
        <input type="hidden" name="id" th:if="${medicineInfo}" th:value="${medicineInfo.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="title" placeholder="请输入标题" th:value="${medicineInfo?.title}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">药品类型</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="medicalType" placeholder="请输入药品类型" th:value="${medicineInfo?.medicalType}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">药品类型文本</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="medicalTypeText" placeholder="请输入药品类型文本" th:value="${medicineInfo?.medicalTypeText}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">药品拼音</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="chinesePinyin" placeholder="请输入药品拼音" th:value="${medicineInfo?.chinesePinyin}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">别名</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="shopName" placeholder="请输入别名" th:value="${medicineInfo?.shopName}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">属性</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="property" placeholder="请输入属性" th:value="${medicineInfo?.property}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="description" placeholder="请输入描述" th:value="${medicineInfo?.description}">
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>